﻿using System;
using System.Runtime.Serialization;

namespace BusinessObjects.Models
{
    [DataContract]
    [KnownType(typeof (Array))]
    [KnownType(typeof (byte[]))]
    public class Dish
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public double? CalorificEffect { get; set; }

        [DataMember]
        public string Structure { get; set; }

        [DataMember]
        public double Price { get; set; }

        [DataMember]
        public byte[] Image { get; set; }


        [DataMember]
        public Provider Provider { get; set; }

        [DataMember]
        public int ProviderId { get; set; }

        [DataMember]
        public virtual OrderItem OrderItem { get; set; }
    }
}